<?php

namespace app\admin\model\xmwms;

use think\Model;

class OutboundOrderShipment extends Model
{
    // 表名
    protected $name = 'wms_outbound_order_shipment';

    /**
     * @var string 自动写入时间戳字段
     */
    protected $autoWriteTimestamp = true;

    protected $append = [
    ];

    // 字段类型转换
    protected $type = [
        'deletetime' => 'timestamp:Y-m-d H:i:s',
    ];

    public function outboundorder()
    {
        return $this->belongsTo(OutboundOrder::class, 'outbound_order_id', 'id');
    }

    public function product()
    {
        return $this->belongsTo(Product::class, 'product_id', 'id');
    }

    public function wmsCarrier()
    {
        return $this->belongsTo(Carrier::class, 'carrier_id', 'id');
    }

}